﻿#*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
grant_immortality_interaction = {
	category = interaction_category_immortality
	common_interaction = yes
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes

	is_shown = {
		scope:recipient = {
			NOT = {
				scope:recipient = {
					has_trait = immortality
				}
			}
		}
	}

	on_accept = {
		scope:recipient = {
			add_trait = immortality
			add_character_flag = {
				flag = immune_to_disease
			}
		}
	}

	auto_accept = yes
	ai_will_do = 0
}
#*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
remove_immortality_interaction = {
	category = interaction_category_immortality
	common_interaction = yes
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	is_shown = {
		scope:recipient = {
			has_trait = immortality
		}
	}

	on_accept = {
		scope:recipient = {
			remove_trait = immortality
			remove_character_flag = immune_to_disease
		}
	}

	auto_accept = yes
	ai_will_do = 0
}
#*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
restore_body_interaction = {
	category = interaction_category_immortality
	common_interaction = yes
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	is_shown = {
		scope:recipient = {
			has_trait = immortality
		}
	}

	on_accept = {
		scope:recipient = {
			remove_trait = wounded_1
			remove_trait = wounded_2
			remove_trait = wounded_3
			remove_trait = maimed
			remove_trait = one_eyed
			remove_trait = one_legged
			remove_trait = disfigured
			remove_trait = infirm
			remove_trait = incapable
			remove_trait = gout_ridden
			remove_trait = consumption
			remove_trait = cancer
			remove_trait = typhus
			remove_trait = bubonic_plague
			remove_trait = smallpox
			remove_trait = sickly
			remove_trait = scarred
			remove_trait = eunuch
			remove_trait = blind
			remove_trait = leper
			remove_trait = lovers_pox
			remove_trait = early_great_pox
			remove_trait = great_pox
			remove_trait = pneumonic
			remove_trait = ill

			remove_trait = possessed_genetic
			remove_trait = possessed_1
			remove_trait = lunatic_genetic
			remove_trait = lunatic_1
			remove_trait = depressed_genetic
			remove_trait = depressed_1

			remove_trait = drunkard
			remove_trait = flagellant

			remove_character_modifier = infected_wound_modifier
			remove_character_modifier = gangrene_modifier
			remove_character_modifier = exhausted_modifier
			remove_character_modifier = low_social_energy_modifier
			remove_character_modifier = lunatic_made_of_glass_modifier
			remove_character_modifier = lunatic_bat_ravings_modifier

			remove_character_modifier = safe_disease_treatment_failure_modifier
			remove_character_modifier = risky_disease_treatment_failure_modifier
			remove_character_modifier = safe_wound_treatment_failure_modifier
			remove_character_modifier = risky_wound_treatment_failure_modifier

			remove_character_modifier = gaining_weight_modifier
			remove_character_modifier = losing_weight_modifier
			remove_character_modifier = obese_modifier
			remove_character_modifier = malnourished_modifier

			remove_character_modifier = feast_bad_reaction_to_food
			remove_character_modifier = feast_bad_form_with_rival_modifier
			remove_character_modifier = hunt_tasted_the_belt_modifier
			remove_character_modifier = pilgrimage_completely_lost_modifier
			remove_character_modifier = sleep_deprived_modifier
			remove_character_modifier = court_starved_modifier
			remove_character_modifier = recently_tortured
			remove_character_modifier = recently_blinded
			remove_character_modifier = recently_castrated
			remove_character_modifier = bad_omen_modifier
			remove_character_modifier = poisonous_gold_modifier
			remove_character_modifier = venomous_animal_modifier

			remove_character_modifier = intrigue_starved_and_deprived_modifier
			remove_character_modifier = intrigue_suffered_degredation_modifier
			remove_character_modifier = intrigue_broken_modifier
			remove_character_modifier = chronic_headaches_modifier
			remove_character_modifier = theology_dangerous_habits_modifier
			remove_character_modifier = hallucinogenic_visions_terrifying_modifier
			remove_character_modifier = cursed_horse_modifier

			remove_character_modifier = cat_story_allergy_modifier
			remove_character_modifier = stress_frozen_grief
			remove_character_modifier = stress_drinking_binge
			remove_character_modifier = stress_inappetetic_hunger_1
			remove_character_modifier = stress_inappetetic_hunger_2
			remove_character_modifier = stress_inappetetic_hunger_3
			remove_character_modifier = drafty_dining_hall_modifier

			remove_character_modifier = designated_human_sacrifice_modifier
			remove_character_modifier = all_work_no_play_persian_modifier

			remove_character_modifier = stress_level_1
			remove_character_modifier = stress_level_2
			remove_character_modifier = stress_level_3
			remove_character_modifier = stress_starvation
			remove_character_modifier = stress_starvation_minor
			remove_character_modifier = failing_health

			####Weight####
			if = {
				limit = {
					target_weight >= 15
				}
				change_target_weight = -25
			}
			if = {
				limit = {
					target_weight <= -30
				}
				change_target_weight = 25
			}
			if = {
				limit = {
					current_weight >= 15
				}
				change_current_weight = -25
			}
			if = {
				limit = {
					current_weight <= -30
				}
				change_current_weight = 25
			}

			if = {
				limit = {
					target_weight >= 15
				}
				change_target_weight = -25
			}
			if = {
				limit = {
					target_weight <= -30
				}
				change_target_weight = 25
			}
			if = {
				limit = {
					current_weight >= 15
				}
				change_current_weight = -25
			}
			if = {
				limit = {
					current_weight <= -30
				}
				change_current_weight = 25
			}

			if = {
				limit = {
					target_weight >= 15
				}
				change_target_weight = -25
			}
			if = {
				limit = {
					target_weight <= -30
				}
				change_target_weight = 25
			}
			if = {
				limit = {
					current_weight >= 15
				}
				change_current_weight = -25
			}
			if = {
				limit = {
					current_weight <= -30
				}
				change_current_weight = 25
			}

			if = {
				limit = {
					target_weight >= 15
				}
				change_target_weight = -25
			}
			if = {
				limit = {
					target_weight <= -30
				}
				change_target_weight = 25
			}
			if = {
				limit = {
					current_weight >= 15
				}
				change_current_weight = -25
			}
			if = {
				limit = {
					current_weight <= -30
				}
				change_current_weight = 25
			}
		}
	}

	auto_accept = yes
	ai_will_do = 0
}
#*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
set_age_interaction = {
	category = interaction_category_immortality
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	is_shown = {
		scope:recipient = {
			has_trait = immortality
		}
	}

	on_accept = {
		scope:recipient = {
			trigger_event = immortality_set_age.1
		}
	}

	auto_accept = yes
	ai_will_do = 0
}
#*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
set_age_16_interaction = {
	category = interaction_category_immortality
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	is_shown = {
		scope:recipient = {
			has_trait = immortality
		}
	}

	on_accept = {
		scope:recipient = {
			set_immortal_age = 16
		}
	}

	auto_accept = yes
	ai_will_do = 0
}
#*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
set_age_20_interaction = {
	category = interaction_category_immortality
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	is_shown = {
		scope:recipient = {
			has_trait = immortality
		}
	}

	on_accept = {
		scope:recipient = {
			set_immortal_age = 20
		}
	}

	auto_accept = yes
	ai_will_do = 0
}
#*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
set_age_30_interaction = {
	category = interaction_category_immortality
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	is_shown = {
		scope:recipient = {
			has_trait = immortality
		}
	}

	on_accept = {
		scope:recipient = {
			set_immortal_age = 30
		}
	}

	auto_accept = yes
	ai_will_do = 0
}
#*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
set_age_50_interaction = {
	category = interaction_category_immortality
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	is_shown = {
		scope:recipient = {
			has_trait = immortality
		}
	}

	on_accept = {
		scope:recipient = {
			set_immortal_age = 50
		}
	}

	auto_accept = yes
	ai_will_do = 0
}
#*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
set_age_90_interaction = {
	category = interaction_category_immortality
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	is_shown = {
		scope:recipient = {
			has_trait = immortality
		}
	}

	on_accept = {
		scope:recipient = {
			set_immortal_age = 90
		}
	}

	auto_accept = yes
	ai_will_do = 0
}
#*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

